<?php

class siswa{

	var $db;

	public function __construct(){
		$this->db = new DBClass();
	}	

	public function get_all_siswa(){
		$query = "SELECT id_siswa, nis, full_name, email, date_ob, `code`, nationality
			FROM siswa s JOIN nationality n ON s.id_nationality = n.id_nationality
			ORDER BY full_name";
		$rows = $this->db->getRows($query);

		return $rows;

	}	


}	